package edu.sctu.xiangkun.day201505.day20150504.calculator;

import java.util.Scanner;

/**
 * Created by user21 on 2015/5/4.
 */
public class CalculatorOne {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int x, y;
        String z;

        x = input.nextInt();
        z = input.next();
        y = input.nextInt();



        Caculator caculator = new Caculator();
        int result;
        switch(x){

          case '+':result = caculator.puls(x,y);
                System.out.println(x+"+"+y+"="+result);
                break;
            case '-':result = caculator.sub(x, y);
                System.out.println(x+"-"+y+"="+result);
                break;
            case '*':result = caculator.multi(x, y);
                System.out.println(x+"*"+y+"="+result);
                break;
            case '/':result = caculator.divide(x,y);
                System.out.println(x+"/"+y+"="+result);
                break;
            case '%':result = caculator.mod(x,y);
                System.out.println(x+"%"+y+"="+result);
                break;
           default:System.out.println("enter char error!");
       }
    }
}
